package ooday04;
import java.util.Timer;
import java.util.TimerTask;
@SuppressWarnings({"all"})
public class TimerDemo {
    public static void main(String[] args) {
        /*Timer timer = new Timer();
        timer.schedule(new TimerTask() {
            @Override
            public void run() {
                System.out.println("yjpyjp");
            }
        },1000,1000);*/


        Timer timer = new Timer();
        TimerTask timerTask = new TimerTask() {
            @Override
            public void run() {

                    System.out.println("yjpyyds");


            }
        };
        timer.schedule(timerTask,1000,10000);


    }
}
